const joi = require('joi')

const account = joi.string().alphanum().min(6).max(12).required()
const password = joi.string().pattern(/^(?![0-9]+$)[a-zA-Z0-9]{1,50}$/).min(6).max(16).required()

exports.login_limit = {
    body: {
        account,
        password
    }
}